#!/usr/bin/env python
# -*- coding: UTF-8 -*-
__author__ = 'gtlions'
import poplib

p = poplib.POP3('pop.139.com')
p.user('gtlions.l')
p.pass_('passwd')
ret = p.stat()
print ret
l = p.list()
print l

l = p.list(1)
print l
r = p.retr(40)
print r
